//
//  addSubUserTableViewCell.m
//  CarTown
//
//  Created by 熊浩 on 15/9/3.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "addSubUserTableViewCell.h"
#define kTableTopBorderWidth 8
@implementation addSubUserTableViewCell

- (void)awakeFromNib {
    // Initialization code
    self.layer.borderColor=[BoderColor CGColor];
    self.layer.borderWidth=0.5;
}
+(instancetype)cellWithTableView:(UITableView *)tableview{
    addSubUserTableViewCell *cell=[tableview dequeueReusableCellWithIdentifier:@"addsub"];
    if (cell==nil) {
        cell=[[[NSBundle mainBundle]loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil]lastObject];
    }
    return cell;
}
-(void)setFrame:(CGRect)frame{
    frame.origin.y += kTableTopBorderWidth;
    frame.size.height -= kTableTopBorderWidth;
    [super setFrame:frame];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
